Skip to content

Conversation

@kapetr
Copy link
Contributor

@kapetr kapetr commented Oct 23, 2025

Closes #1182

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kapetr, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the user interface and experience for managing run model settings. It introduces new, modular UI components and refactors existing ones to provide a more intuitive and flexible way for users to configure model parameters and providers. The changes aim to streamline the interaction with agent settings and improve the overall usability of the application's configuration flows.

Highlights

  • New UI/UX for Run Model Settings: Introduced a new user experience for configuring run model settings, including a dedicated 'Response Style' single-select field in the Python SDK example.
  • Reusable UI Components: Developed new, reusable React components such as RadioSelect for radio button groups, FormActionBar for consistent form actions, and RunDialogButton for managing floating dialogs related to run settings.
  • Refactoring of Settings and Model Providers: Refactored the existing RunSettings and ModelProviders components to leverage the new RunDialogButton and RadioSelect components, improving modularity and maintainability. The old ModelProviders.tsx file was removed.
  • Enhanced Dialog Positioning Logic: Updated the useRunSettingsDialog hook with more flexible positioning logic, including new offset constants and support for maxWidth and blockOffset to ensure optimal dialog placement.
  • Build Tooling Updates: The mise.lock file was updated, reflecting changes in tool versions and checksums, ensuring consistent development environment configurations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@i-am-bee i-am-bee deleted a comment from gemini-code-assist bot Oct 23, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new UX for run model settings, enhancing the user interface with radio select components and dialogs for settings and model providers. The changes include refactoring and renaming components, adding new components for radio select and form action bars, and updating the settings agent in the Python SDK. The addition of a console log in rsc.tsx should be removed before merging.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new user experience for run model settings by refactoring several components to use a new RadioSelect component and a dialog-based approach. The changes are extensive and improve component structure and reusability. However, I've found several critical issues, including a repeated typo (setPositionReference instead of setReference) that will cause runtime errors, as well as some high-severity bugs like missing CSS class definitions. I've also included some suggestions for code style and best practices to enhance code quality.

Signed-off-by: Petr Kadlec <[email protected]>
@kapetr kapetr requested a review from PetrBulanek October 23, 2025 09:02
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS rules for .fields and .buttons inside apps/beeai-ui/src/modules/form/components/FormRenderer.module.scss can be deleted.

import classes from './FormActionBar.module.scss';

interface Props {
isDisabled?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think isSubmitDisabled or something similar would be more descriptive.

.root {
display: grid;
grid-template-columns: 1fr max-content;
align-items: center;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify the styles here removing the "align-items: center" with "block-size: rem(40px)" from .settings.

Signed-off-by: Petr Kadlec <[email protected]>
@kapetr kapetr requested a review from PetrBulanek October 27, 2025 10:03
@kapetr kapetr merged commit 13e5c45 into main Oct 27, 2025
8 checks passed
@kapetr kapetr deleted the ui/run-model-settings branch October 27, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI - LLM Extension Model Selection

3 participants